package com.wanjia.bpsapi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanjia.bpsapi.pojo.dto.PutAwayDTO;
import com.wanjia.bpsapi.pojo.entity.PutClient;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 上架信息表 Mapper 接口
 * </p>
 *
 * @author wyn
 * @since 2023-02-13
 */
@Repository
public interface PutClientMapper extends BaseMapper<PutClient> {

    List<PutAwayDTO> pagePutAwayDTO(@Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize,
                                    @Param("vegeId") Long vegeId, @Param("clientId") Long clientId,
                                    @Param("startPutDate") Date startPutDate, @Param("endPutDate") Date endPutDate);

    Long countPutAwayDTO(@Param("vegeId") Long vegeId, @Param("clientId") Long clientId,
                         @Param("startPutDate") Date startPutDate, @Param("endPutDate") Date endPutDate);

    List<PutClient> selectLatest();
}
